package com.flyco.modules.stm.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.flyco.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;

/**
 * @Description: 门店盘点单记录
 * @Author: flyco
 * @Date:   2020-12-16
 * @Version: V1.0
 */
@Data
@TableName("stm_stock_check_item")
public class StmStockCheckItem implements Serializable {
	private static final long serialVersionUID = 1L;
	/**id*/
	@TableId(type = IdType.AUTO)
	private Long id;
	/**盘点单id*/
	private Long stockCheckId;
	/**商品id*/
    @Excel(name = "商品", width = 25,dictTable ="pms_product",dicText = "name",dicCode = "id" )
	@Dict(dictTable ="pms_product",dicText = "name",dicCode = "id")
	private Long productId;
	/**商品货号*/
    @Excel(name = "货号", width = 15)
	private String productSn;
	/**sku编码*/
    @Excel(name = "SKU编码", width = 15)
	private String skuCode;
	/**物料编码*/
	@Excel(name = "物料编码", width = 15)
	@TableField(exist = false)
	private String materialCode;
	/**库存类别*/
	@Excel(name = "库存类别", width = 15,dicCode="stock_type")
	@Dict(dicCode = "stock_type")
	private String stockType;
	/**当前数量*/
    @Excel(name = "库存数量", width = 15)
	private Integer qty;
	/**盘点数量*/
    @Excel(name = "盘点数量", width = 15)
	private Integer checkQty;
	/**差异数量*/
    @Excel(name = "差异数量", width = 15)
	private Integer diffQty;
	/**创建人*/
    //@Excel(name = "创建人", width = 15)
	private String createBy;
	/**创建时间*/
	//@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date createTime;
	/**更新人*/
    //@Excel(name = "更新人", width = 15)
	private String updateBy;
	/**更新时间*/
	//@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date updateTime;
}
